<?php
class Ynblog_Model_DbTable_Links extends Engine_Db_Table
{
  protected $_rowClass = 'Ynblog_Model_Link';
  protected $_name ='blog_links';

  /*----- Get Specific link according to the user id -----*/
  public function getLink($user_id = 0){
    if($user_id == 0) return '';
    $select = $this->select()->where('user_id = ?',$user_id);
    $result = $this->fetchRow($select);
    return $result;
  }
}
?>
